package cn.tedu.tmall.common.web;

import lombok.Getter;

@Getter
public enum ServiceCodeEnum {
    OK(1000,"操作成功"),
    BAD_REQUEST_NAME_EXIST(2000,"操作失败"),
    ERROR_UNAUTHORIZED(4001,"验证未通过"),

    USER_STATE_DISABLE(7020,"用户被禁用"),
    USER_ADDRESS_ERROR(7021,"用户收货地址错误"),
    INSERT_ERROR(9000,"保存失败"),


    GOODS_NOT_EXIST(8000,"商品不存在"),

    GOODS_NOT_PUT_ON(8001,"商品已下架"),

    /**
     * 错误：JWT格式错误
     */
    ERR_JWT_MALFORMED(6020,"jwt格式错误");


    private Integer code;
    private  String msg;

    ServiceCodeEnum(Integer code,String msg){
        this.msg=msg;
        this.code = code;
    }



    }

